﻿using Report_IService.Web;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Report_Unity.Basic;
using Report_Unity.Unitys;

namespace Report_Service.Web
{
    public class KAJRMsgService : IMsgService
    {
        public ResultInfo SendCode(string phone)
        {
            ResultInfo res = CodeStatus.success.GetStatus();
            string code = RandomUtils.GetCode();
            res.data = new {code = code };

            // 放入本地缓存
            CacherUtils.InsNoAbsoluteExpirationCacheWithMinute(phone, code);
            return res;
        }
    }
}
